import Vue from 'vue'
import VueRouter from 'vue-router'
import HomePage from '../views/HomePage'
import Classification from '../views/Classification'
import My from '../views/My'
import Orders from '../views/Orders'

Vue.use(VueRouter)

const routes = [
 {
  path: '/',
  redirect: '/home'
 },
 {
  path : '/home',
  component:HomePage
 },
 {
  path : '/class',
  component:Classification
 },
 {
  path : '/orders',
  component:Orders
 },
 {
  path : '/my',
  component:My
 },
 
]

const router = new VueRouter({
  routes
})

export default router
